package gr.atc.epart;

import gr.atc.epart.actions.Action;
import gr.atc.epart.googlewrapper.moderator.GoogleModerator;
import gr.atc.epart.googlewrapper.moderator.ModeratorSeries;
import gr.atc.epart.googlewrapper.moderator.ModeratorTopic;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.app.ProgressDialog;

public class EPartVolatileDataStore
{
	 private static EPartVolatileDataStore _instance = new EPartVolatileDataStore();
	 private static HashMap<String,List<Action>> _actionsList;
	 private static List<Action> _singleActionsList;
	 private static Action _currentAction;
	 private ProgressDialog _progressDialog; 
	 
	 private String    	 	 _moderatorAuthToken;

	 private GoogleModerator _moderatorInstance;
	 private ModeratorTopic  _moderatorTopic;
	 private ModeratorSeries _moderatorSeries;
	 

	 private EPartVolatileDataStore()
	 {
		 _actionsList =  new HashMap<String, List<Action>>();
	 }
	
	 public static EPartVolatileDataStore  getInstance()
	 {
		return _instance;  
	 }
	
	 public void setActionsList(String tag,List<Action> actionsList)
	 {
		 _actionsList.put(tag,actionsList);
	 }
	 
	 public List<Action> getActionsList(String tag)
	 {
		 return _actionsList.get(tag);
	 }

	 public void setSelectedAction(Action action)
	 {
		 _currentAction = action;
	 }
	 
	 public Action getSelectedAction()
	 {
		 return _currentAction;
	 }
	 
	 public void setProgressDialog(ProgressDialog  dialog)
	 {
		 _progressDialog = dialog;
	 }
	 
	 public ProgressDialog getProgressDialog()
	 {
		return _progressDialog;
	 }

	public List<Action> getActionsList() 
	{
		return _singleActionsList;
	}

	public  void setActionsList(List<Action> singleActionsList) 
	{
		_singleActionsList = singleActionsList;
	}

	
	public GoogleModerator getModeratorInstance()
	{
		return _moderatorInstance;
	}

	public void setModeratorInstance(GoogleModerator instance)
	{
		_moderatorInstance = instance;
	}
	 
	
	public String getModeratorAuthToken()
	{
		return _moderatorAuthToken;
	}

	public void setModeratorAuthToken(String authToken)
	{
		_moderatorAuthToken = authToken;
	}

	public ModeratorTopic getModeratorTopic()
	{
		return _moderatorTopic;
	}

	public void setModeratorTopic(ModeratorTopic topic)
	{
		_moderatorTopic = topic;
	}

	public void setModeratorSeries(ModeratorSeries moderatorSeries)
	{
		_moderatorSeries = moderatorSeries;
	}

	public ModeratorSeries getModeratorSeries()
	{
		return _moderatorSeries;
	}
	
	 
}
